/*
 * @Description: 实用方法
 * @Author: seadon
 * @LastEditors: seadon
 * @Date: 2021-04-08 10:31:10
 * @LastEditTime: 2021-07-08 20:13:49
 */
// 设置css自定义属性
export function setCssVar(
	prop: string,
	val: any,
	dom = document.documentElement
) {
	dom.style.setProperty(prop, val)
}

//是否是多标签模式
export const isMoreTabs = () => {
	const dataStr = localStorage.getItem('tenantDetail')
	let isMoreTabs = false
	if (dataStr) {
		const data = JSON.parse(dataStr)
		if (data.data) {
			isMoreTabs = data.data.tenant_auth.app_launcher ? true : false
		} else {
			isMoreTabs = data.tenant_auth.app_launcher ? true : false
		}
	}
	return isMoreTabs
}
